<div><?php include_partial('static/adsense_horz_728_90')?></div>
<br/>
<div id="arianne">
	<?php echo link_to('Accueil','@homepage')?> > Nos bons plans
</div>
<h1><strong>Faites votre choix parmis les bonnes affaires ...</strong></h1><br/>

<?php 
$big_size = 18;
$small_size = 6;
if($sf_user->isAuthenticated()){
	$big_size = 20;
	$small_size = 4;
}?>
<div class="span-<?php echo $big_size ?> last" id="listBonPlan">
    <!-- Liste d'annonces -->
    <table id="search_result" cellpadding="10" class="shadow">
    <tr>
    <th>Date de publication</th>
    <th>Photo</th>
    <th>Titre</th>
    <th>Prix</th>
    <th>Ville</th>
    </tr>
    <?php 
    foreach ($pager->getResults() as $ads):
        include_partial('ads/ads', array('ads'=>$ads));
    endforeach;
    ?>
    </table>
    
    <!-- PAGER -->
	<?php foreach ($pager->getLinks() as $page): ?>
	      <?php if ($page == $pager->getPage()): ?>
	        <span class="pager_num"><?php echo $page ?></span>
	      <?php else: ?>
	        <a href="<?php echo url_for('bonPlanAds', $ads) ?>?page=<?php echo $page ?>" class="href_pager_num"><?php echo $page ?></a>
	      <?php endif; ?>
	<?php endforeach; ?>

</div>

<div class="span-<?php echo $small_size ?> last" id="col_right">
	<?php
		if( $sf_user->isAuthenticated() ): 
			//include_partial('static/connectColRight');
	?>
		<div><?php include_partial('static/adsence_big1')?></div>
	<?php
		else:
			include_partial('static/disconnectColRight');
		endif;
	?>
</div>
